projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f5a50b
)
(x_draw_glyph_string_foreground): Set background mode to TRANSPARENT before
author
Juanma Barranquero
<lekktu@gmail.com>
Fri, 27 Oct 2006 22:35:49 +0000
(22:35 +0000)
committer
Juanma Barranquero
<lekktu@gmail.com>
Fri, 27 Oct 2006 22:35:49 +0000
(22:35 +0000)
using overstrike to simulate bold faces.
src/w32term.c
patch
|
blob
|
history
diff --git
a/src/w32term.c
b/src/w32term.c
index c00fdb8923c8b1d4defdae89f208a328392c4e07..e22a9dbe1ab344a62304bbc8ff9bd1d39fa7d065 100644
(file)
--- a/
src/w32term.c
+++ b/
src/w32term.c
@@
-1591,7
+1591,10
@@
x_draw_glyph_string_foreground (s)
{
/* For overstriking (to simulate bold-face), draw the
characters again shifted to the right by one pixel. */
+ int old_BkMode = SetBkMode (s->hdc, TRANSPARENT);
w32_text_out (s, x + 1, s->ybase - boff, s->char2b, s->nchars);
+ if (old_BkMode && old_BkMode != TRANSPARENT)
+ SetBkMode (s->hdc, old_BkMode);
}
}
if (s->font && s->font->hfont)